package push_log

import "time"

type GfyxRadarSubscriptionPushLogPo struct {
	Id              int32 // 主键id
	UserGuid        string
	OpenId          string
	Email           string
	SearchRequest   string
	SearchCount     int32
	SearchSpendTime int64
	SearchRemark    string
	Status          int32
	FailureReason   string
	RetryNum        int32
	RetryTime       time.Time `gorm:"default:null"`
	RetryStatus     int32
	IsDeleted       uint8     // 0正常，1已删除
	CreatedOn       time.Time // 创建时间
	CreatedBy       string    // 创建者
	ModifiedOn      time.Time // 修改时间
	ModifiedBy      string    // 修改者
}

func (p GfyxRadarSubscriptionPushLogPo) TableName() string {
	return "gfyx_radar_subscription_push_log"
}

// 推送状态，0-无新数据,无需推送，1-推送成功，2-推送失败
const (
	StatusDefault = 0
	StatusSucceed = 1
	StatusFailed  = 2
)
